package lhy.autoparts.pojo;

import lhy.frontend.annotation.EntityComment;
import lhy.orm.Serializer;
import lhy.orm.annotation.BasicBean;
import lhy.orm.annotation.Column;
import lhy.lhyorm.field.DatabaseField;
import lhy.lhyorm.table.DatabaseTable;

import java.io.Serializable;

@DatabaseTable(tableName = "ItemUnit")
@EntityComment("货物单位")
@BasicBean
public class ItemUnit implements Serializable {
    @Column("货物单位")
    @DatabaseField(id = true)
    public int id;
    @Column("货物单位名称")
    @DatabaseField
    public String  name;
    @Override
    public String toString() {
        return Serializer.doSerialize(this);
    }
}
